package com.audaque.springboot.foshanupload.web.webdemo.mapper.covert;

import com.audaque.springboot.foshanupload.web.webdemo.mapper.anno.EnglishToGerman;
import com.audaque.springboot.foshanupload.web.webdemo.mapper.anno.GermanToEnglish;
import com.audaque.springboot.foshanupload.web.webdemo.mapper.anno.TitleTranslator;
import org.mapstruct.Named;


//命名
@Named("TitleTranslator")
public class TypeCoverter3 {
    @Named("EnglishToGerman")
    public String translateTitleEG(String title) {
        return "1";
    }
    @Named("GermanToEnglish")
    public String translateTitleGE(String title) {
        return "2";
    }
}



